package com.xydtech.system.mapper;

import com.xydtech.system.domain.SysLoanConfiguration;
import org.apache.ibatis.annotations.Param;

/**
 * <dd>描述: ~ 贷款计算器参数配置Mapper接口</dd>
 * <dd>创建时间：  16:42 2024/1/20</dd>
 * <dd>创建人： yuzhiguo</dd>
 * <dt>版本历史: </dt>
 * Date         Author         Version     Description
 * ------------------------------------------------------------------
 * 2024/1/20     yuzhiguo         1.0        1.0 Version
 */
public interface SysLoanConfigurationMapper {
    /**
     * 根据贷款计算器信息表id获取贷款计算器参数配置对象
     * @param loanId
     * @return
     */
    SysLoanConfiguration selectSysLoanConfigurationByLoanId(String loanId);

    /**
     * 修改保存额度计算配置页
     * @param sysLoanConfiguration
     */
    int editLoanConfiguration(SysLoanConfiguration sysLoanConfiguration);

    /**
     * 获取额度测算的指标值
     * @param merchantType
     * @return
     */
    SysLoanConfiguration selectLoanConfigurationByMerchantType(@Param("merchantType") String merchantType, @Param("deptId") String deptId);

    /**
     * 新增贷款计算器配置表loanId
     * @param loanId
     */
    int insertLoanId(@Param("loanId") Long loanId);
}
